TELGetVolume
Gets the volume and state of a terminal device.
pascal TELErr TELGetVolume ( TELHandle hTEL, short volType, short *level, short *volState);
hTEL
- A handle to a telephone record associated with a telephone terminal.
volType
- The type of terminal device. See "Volume Controls" on page 2-12 for a description of the device types that have a volume and state.
level
- On exit, a value that indicates the current volume level of the specified terminal device.
volState
- On exit, a value that indicates the current volume state of the specified terminal device. See "Volume Controls" on page 2-12 for a description of the available volume states.
- function result
- A result code.
DESCRIPTION
TheTELGetVolume
function returns, in thelevel
andvolState
parameters, the current volume level and state of the terminal device specified by thevolType
andhTEL
parameters. The value returned in thelevel
parameter is always betweentelVolMin
andtelVolMax
. The value returned in thevolState
parameter is eithertelVolStateOn
ortelVolStateOff
.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help